const Koa = require('koa')
const bodyparser = require('koa-bodyparser')
const cors = require('koa2-cors');

const app = new Koa()
app.use(cors())
app.use(bodyparser())
require('./core/init').initCore(app)
app.use(require('./app/middleware/isAuth'))



app.listen(3000, () => {
    console.log('listen server to http://localhost:3000/');
})